Conversation
…ith-db` is it not really necessary
…orresponding Frontier fork updates
5f0db3e to
6b542f4
Compare
vedhavyas
left a comment
There was a problem hiding this comment.
construct_runtime seems much more readable now.
LGTM
Recall what it looked like 2 years ago. I hope they will get to attribute macro there at some point too 🙂 |
|
Okay, looks like something else related to transaction pool needs to be changed to fix tests 😕 |
|
@vedhavyas @NingLin-P I'll need your help fixing domains tests here |
|
Interesting, looks like to be able to submit transactions this is now required: Let me fix this and see if tests pass. |
|
Is it possible to register the extension just once like |
|
I believe it should be possible, but it is also recommended to not do that. |
We had to introduce Inherent data providers since upstream introduced `pending` tags for Eth rpc calls. When an rpc call with pending tag is received, we construct pending block by building a new block with extrinsics from tx pool. So they use inherent data providers to provide inherent data. For now, we just provide timestamp since that is always required. I have added an TODO to handle any new inherents that needs to be present. Ex runtime upgrade can be added in later PR
Upgrade frontier deps
|
Hm, merge conflicts already 😒 |
# Conflicts: # crates/subspace-node/Cargo.toml # crates/subspace-node/src/domain/cli.rs
Frontier updates are done in polkadot-evm/frontier#1193, Substrate updates are done in
subspace-v6branch in our fork (rebased due to various conflicts, primarily with block relay).This upgrades us to latest commit in the old Substrate repo, I'll upgrade us to latest
polkadot-sdkin a separate PR.Interesting changes:
GasLimitPovSizeRatio,weight_limitandproof_size_base_costwere introduced, seem to be parachain-specific and set to defaults.pendingsupport foreth_getBlockByNumber: Addpendingsupport foreth_getBlockByNumberpolkadot-evm/frontier#1048Introduced
pending_blockRPC runtime API, I used implementation from template in the PROther important upstream changes that resulted in downstream modifications:
GenesisBuild<T,I>deprecated.BuildGenesisConfigadded. paritytech/substrate#14306Blocktoframe_systeminstead ofconstruct_runtimeand removesHeaderandBlockNumberparitytech/substrate#14437paritytech/substrate#14709 was promising, but not sufficient, so I opened paritytech/polkadot-sdk#1533
Code contributor checklist: